package com.luanye.enjoy.entity;

import java.util.Date;
import java.util.List;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.experimental.Accessors;

@Data@Builder@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("enjoy_dynamic")
public class Dynamic  {

    @TableId
    private Integer id;

    private String content;

    private String img;

    private Integer likes;

    private String location;

    private String title;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    private Integer delFlag;

    @TableField(exist = false)
    private boolean isLiked;

    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private List<String> topics;

    @TableField(exist = false)
    private Object commentNum;
}
